        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            transition: background-color 0.3s, color 0.3s;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
            padding: 20px;
            max-width: 1400px;
            margin: 0 auto;
            min-height: 100vh;
        }
        
        body.dark-mode {
            background-color: #1a1d21;
            color: #e1e6ec;
        }
        
        /* 顶部导航栏 */
        .top-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 1px solid #e1e4e8;
        }
        
        .dark-mode .top-nav {
            border-bottom: 1px solid #4a5568;
        }
        
        .hamburger-menu {
            cursor: pointer;
            width: 42px;
            height: 42px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 5px;
            border-radius: 50%;
            background: #edf2f7;
            position: relative;
            z-index: 1001;
        }
        
        .dark-mode .hamburger-menu {
            background: #2d3748;
        }
        
        .menu-bar {
            width: 22px;
            height: 2px;
            background-color: #4a5568;
            border-radius: 1px;
            transition: all 0.3s ease;
        }
        
        .dark-mode .menu-bar {
            background-color: #cbd5e0;
        }
        
        .hamburger-menu.active .menu-bar:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }
        
        .hamburger-menu.active .menu-bar:nth-child(2) {
            opacity: 0;
        }
        
        .hamburger-menu.active .menu-bar:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }
        
        .sidebar {
            position: fixed;
            top: 0;
            left: -300px;
            width: 280px;
            height: 100vh;
            background: white;
            box-shadow: 5px 0 15px rgba(0,0,0,0.1);
            z-index: 1000;
            padding: 80px 20px 20px;
            transition: left 0.3s ease;
            overflow-y: auto;
        }
        
        .dark-mode .sidebar {
            background: #2d3748;
            box-shadow: 5px 0 15px rgba(0,0,0,0.3);
        }
        
        .sidebar.active {
            left: 0;
        }
        
        .sidebar h3 {
            margin: 25px 0 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #e2e8f0;
            color: #2c3e50;
        }
        
        .dark-mode .sidebar h3 {
            color: #e2e8f0;
            border-bottom: 1px solid #4a5568;
        }
        
        .theme-control {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .theme-control h4 {
            margin-bottom: 10px;
            color: #4a5568;
            font-size: 16px;
        }
        
        .dark-mode .theme-control h4 {
            color: #cbd5e0;
        }
        
        .theme-input {
            width: 100%;
            padding: 12px 15px;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            font-size: 14px;
            background: #f8fafc;
        }
        
        .dark-mode .theme-input {
            background: #1a202c;
            border-color: #4a5568;
            color: #e2e8f0;
        }
        
        .theme-textarea {
            width: 100%;
            height: 180px;
            padding: 15px;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            font-family: monospace;
            font-size: 14px;
            background: #f8fafc;
            resize: vertical;
        }
        
        .dark-mode .theme-textarea {
            background: #1a202c;
            border-color: #4a5568;
            color: #e2e8f0;
        }
        
        .theme-btn {
            padding: 12px 20px;
            border-radius: 8px;
            background: #3182ce;
            color: white;
            border: none;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .theme-btn:hover {
            background: #2b6cb0;
        }
        
        .theme-btn.secondary {
            background: #e2e8f0;
            color: #4a5568;
        }
        
        .dark-mode .theme-btn.secondary {
            background: #4a5568;
            color: #e2e8f0;
        }
        
        .theme-btn.secondary:hover {
            background: #cbd5e0;
        }
        
        .dark-mode .theme-btn.secondary:hover {
            background: #718096;
        }
        
        .theme-buttons {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }
        
        .theme-buttons .theme-btn {
            flex: 1;
        }
        
        .theme-examples {
            margin-top: 20px;
            padding: 15px;
            background: #f8fafc;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
        }
        
        .dark-mode .theme-examples {
            background: #1a202c;
            border-color: #4a5568;
        }
        
        .theme-examples h4 {
            margin-bottom: 10px;
            color: #4a5568;
            font-size: 15px;
        }
        
        .dark-mode .theme-examples h4 {
            color: #cbd5e0;
        }
        
        .theme-examples ul {
            padding-left: 20px;
            color: #718096;
            font-size: 14px;
            line-height: 1.6;
        }
        
        .dark-mode .theme-examples ul {
            color: #a0aec0;
        }
        
        .theme-examples li {
            margin-bottom: 5px;
        }
        
        /* 容器功能切换 */
        .container-switch {
            display: flex;
            background: #edf2f7;
            border-radius: 8px;
            padding: 5px;
        }
        
        .dark-mode .container-switch {
            background: #2c2f33;
        }
        
        .switch-tab {
            padding: 8px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            color: #4a5568;
            transition: all 0.2s;
        }
        
        .dark-mode .switch-tab {
            color: #a0aec0;
        }
        
        .switch-tab.active {
            background: white;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            color: #3182ce;
        }
        
        .dark-mode .switch-tab.active {
            background: #2d3748;
            color: #63b3ed;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }
        
        .theme-toggle {
            cursor: pointer;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: #edf2f7;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: background-color 0.3s;
        }
        
        .dark-mode .theme-toggle {
            background: #2d3748;
        }
        
        .theme-toggle:hover {
            background: #e2e8f0;
        }
        
        .dark-mode .theme-toggle:hover {
            background: #4a5568;
        }
        
        /* 编辑区域 */
        .editor-container {
            display: flex;
            gap: 25px;
            height: calc(100vh - 200px);
            min-height: 500px;
        }
        
        .editor-area, .preview-area {
            flex: 1;
            border-radius: 12px;
            background: white;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
        }
        
        .dark-mode .editor-area, 
        .dark-mode .preview-area {
            background: #2d3748;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        .editor-header {
            padding: 15px 20px;
            font-size: 16px;
            font-weight: 600;
            background: #f7fafc;
            border-bottom: 1px solid #e2e8f0;
            color: #4a5568;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .dark-mode .editor-header {
            background: #4a5568;
            border-color: #2d3748;
            color: #e2e8f0;
        }
        
        .markdown-input {
            width: 100%;
            flex: 1;
            padding: 20px;
            font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
            font-size: 16px;
            line-height: 1.8;
            border: none;
            resize: none;
            background: white;
            color: #2d3748;
        }
        
        .dark-mode .markdown-input {
            background: #1a202c;
            color: #e2e8f0;
        }
        
        .markdown-input:focus {
            outline: none;
        }
        
        .markdown-input::placeholder {
            color: #a0aec0;
        }
        
        .preview-area {
            display: none;
            padding: 0;
        }
        
        .preview-content {
            flex: 1;
            padding: 30px;
            overflow-y: auto;
            font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
            background: white;
        }
        
        .dark-mode .preview-content {
            background: #1a202c;
            color: #e1e6ec;
        }
        
        /* 微信公众号默认样式 */
        .wechat-style h1 {
            font-size: 22px;
            font-weight: 700;
            margin: 30px 0 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
            text-align: center;
            color: #333;
        }
        
        .dark-mode .wechat-style h1 {
            color: #e1e6ec;
            border-bottom: 1px solid #4a5568;
        }
        
        .wechat-style h2 {
            font-size: 18px;
            font-weight: 600;
            margin: 25px 0 15px;
            padding-left: 10px;
            border-left: 4px solid #3498db;
            color: #2c3e50;
        }
        
        .dark-mode .wechat-style h2 {
            color: #a0c4ff;
            border-left: 4px solid #1abc9c;
        }
        
        .wechat-style h3 {
            font-size: 16px;
            font-weight: 600;
            margin: 20px 0 12px;
            color: #2c3e50;
        }
        
        .dark-mode .wechat-style h3 {
            color: #cbd5e0;
        }
        
        .wechat-style p {
            font-size: 15px;
            margin-bottom: 15px;
            line-height: 1.8;
            color: #333;
        }
        
        .dark-mode .wechat-style p {
            color: #e1e6ec;
        }
        
        .wechat-style a {
            color: #3498db;
            text-decoration: none;
            border-bottom: 1px solid rgba(52, 152, 219, 0.3);
            transition: all 0.2s;
        }
        
        .wechat-style a:hover {
            color: #2980b9;
            border-bottom: 1px solid #2980b9;
        }
        
        .wechat-style strong {
            color: #e74c3c;
        }
        
        .dark-mode .wechat-style strong {
            color: #ff9a9e;
        }
        
        .wechat-style em {
            color: #9b59b6;
        }
        
        .wechat-style ul, .wechat-style ol {
            padding-left: 25px;
            margin-bottom: 20px;
        }
        
        .wechat-style li {
            margin-bottom: 8px;
            color: #333;
        }
        
        .dark-mode .wechat-style li {
            color: #e1e6ec;
        }
        
        .wechat-style blockquote {
            border-left: 4px solid #3498db;
            background: #f8f9fa;
            padding: 12px 20px;
            margin: 20px 0;
            border-radius: 0 4px 4px 0;
            color: #555;
        }
        
        .dark-mode .wechat-style blockquote {
            background: #2d3748;
            border-left: 4px solid #1abc9c;
            color: #cbd5e0;
        }
        
        .wechat-style pre {
            background: #2d3748;
            border-radius: 6px;
            padding: 16px;
            margin: 20px 0;
            overflow: auto;
            font-size: 14px;
        }
        
        .dark-mode .wechat-style pre {
            background: #1e272e;
        }
        
        .wechat-style code {
            font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
            background: rgba(52, 152, 219, 0.1);
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 90%;
            color: #e74c3c;
        }
        
        .dark-mode .wechat-style code {
            background: rgba(231, 76, 60, 0.15);
            color: #ff9a9e;
        }
        
        .wechat-style img {
            max-width: 100%;
            border-radius: 6px;
            display: block;
            margin: 20px auto;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        }
        
        .wechat-style table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
        }
        
        .wechat-style th, .wechat-style td {
            border: 1px solid #ddd;
            padding: 10px;
            text-align: left;
        }
        
        .wechat-style th {
            background-color: #f8f9fa;
            font-weight: 600;
        }
        
        .dark-mode .wechat-style th {
            background-color: #2d3748;
        }
        
        /* 底部状态栏 */
        .status-bar {
            display: flex;
            justify-content: space-between;
            padding: 12px 20px;
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            margin-top: 15px;
            font-size: 14px;
            color: #718096;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        
        .dark-mode .status-bar {
            background: #2d3748;
            border-color: #4a5568;
            color: #a0aec0;
        }
        
        .char-count {
            font-weight: 600;
            color: #3498db;
        }
        
        .dark-mode .char-count {
            color: #1abc9c;
        }
        
        /* 响应式设计 */
        @media (max-width: 1024px) {
            .editor-container {
                flex-direction: column;
                height: auto;
            }
            
            .editor-area, .preview-area {
                min-height: 450px;
            }
        }
        
        @media (max-width: 768px) {
            .top-nav {
                flex-wrap: wrap;
                gap: 15px;
            }
            
            .container-switch {
                order: 3;
                width: 100%;
                justify-content: center;
            }
            
            .status-bar {
                flex-direction: column;
                gap: 10px;
                align-items: center;
            }
            
            .sidebar {
                width: 260px;
            }
        }